Low level smartphone audio and sensor clock synchronization

ABSTRACT

An approach to obtain low latency association of the audio clock in a smartphone with an incoming RF message is to use an interrupt driven routine, where the receipt of the RF message preamble generates an interrupt that reads the audio clock counter since the start of the audio session. In some embodiments such an approach may be implemented on the specialized processing cores found in smartphones that control RF communication, sensor or audio processing.

FIELD

The present disclosure relates generally to real-time location systems and more particularly to clock synchronization for use in real-time location systems.

BACKGROUND

In recent years, real-time location systems, such as indoor positioning systems, have found increased popularity and application. It is known to provide room-level location using static ultrasonic transmitters at known locations within an environment such as a building or other structure. Such transmitters can be used to transmit acoustic signals that may be received by one or more mobile receiver devices located within the broadcast range of the ultrasonic transmitters. A location of the mobile receiver devices may be determined based at least in part on the positions of the static transmitter units and the times of arrival of the acoustic signals at the mobile devices.

SUMMARY

Aspects and advantages of embodiments of the present disclosure will be set forth in part in the following description, or may be learned from the description, or may be learned through practice of the embodiments.

One example aspect of the present disclosure is directed to a method associated with a real-time location system. The method includes receiving by a mobile device an RF message, the RF message including timing information associated with a time of transmission of the RF message relative to a reference clock in the real-time location system. The method further includes generating an interrupt by the mobile device upon receipt of the RF message. The method also includes, in response to the interrupt, reading a value of an audio clock, the value being representative of a time since a start of an audio session associated with a received acoustic signal. In addition, the method includes synchronizing the audio clock with the reference clock based on the value. Finally, the method includes determining a location of the mobile device based on the synchronizing the audio clock.

Other aspects of the present disclosure are directed to systems, apparatus, tangible, non-transitory computer-readable media, user interfaces, and devices for providing real-time location.

These and other features, aspects, and advantages of various embodiments will become better understood with reference to the following description and appended claims. The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and together, with the description, serve to explain the related principles.

BRIEF DESCRIPTION OF THE DRAWINGS

Detailed discussion of embodiments directed to one of ordinary skill in the art is set forth in the specification, which makes reference to the appended figures, in which:

FIG. 1 depicts an example transmitting device for use in a real-time locating system according to example embodiments of the present disclosure;

FIG. 2 depicts an external view of an example transmitting device for use in a real-time locating system according to example embodiments of the present disclosure;

FIG. 3 depicts an overview of an example real-time locating system according to example embodiments of the present disclosure; and

FIG. 4 depicts a flow diagram of an example method of determining a location associated with a mobile unit according to example embodiments of the present disclosure.

DETAILED DESCRIPTION

The determination of the time of arrival of acoustic (e.g., ultrasound) signals in a mobile device (e.g., smartphone) is currently done by using the audio sample count. As a time estimate, the value of the audio sample count is made with reference to the local audio clock. Linking this audio sample clock to a system (reference) time, as used by a real-time location system infrastructure (e.g., ultraBeacon system infrastructure), is currently not feasible with a desirable accuracy of 0.3 ms or better (equivalent to 10 cm of positioning accuracy) in the common operating system found on many mobile devices (e.g., iOS, Android). However, if synchronization between a local time (as determined from a local audio clock) and the reference time could be achieved, then real time location algorithms can be simplified since the mobile device (e.g., smartphone) now has the capability to find the time of flight rather than the time of arrival of the acoustic signals at the mobile device.

Synchronization of the audio clock on the mobile device to a clock that may act as a reference clock by the infrastructure may be implemented in various ways. Common to all of these approaches is the requirement of a very low (less than 0.3 ms) (or at least a constant) latency between the low level software mechanisms that associate clock stamps from the audio clock and clock stamps of a second source, e.g., a source of time stamps that are tied to the reference time. In practice, this latency requirement means that such clock associations need to be done in system components that either have a high priority or are real-time in nature.

Due to the much higher propagation speeds of RF signals when compared to acoustic (e.g., ultrasound) signals, RF communication lends itself very well as the basis for a second clock source in the above association process. This is due to the negligible delay associated with the time of flight of the RF signal compared to the delay associated with the propagation of the acoustic signal. However, in practice, this approach is far from straightforward since the RF transceivers that are typically used in infrastructure components and that allow for low level access to timing and message content (ZigBee, LoRa, ANT, etc.) are not supported on the common mobile device platforms. The converse is also true, namely that the RF transceivers supported on the mobile device platforms, (WiFi, GSM, CDMA, BLE) typically do not allow low level access to message content and message timing. Even if such functionality were supported (e.g., BLE paired communication), the power-hungry two-way communication would be prohibitive to use in a battery power location transmitter that may be required to support years of battery life using low cost batteries.

In summary, there are various obstacles to the use of time-of-flight positioning methods in acoustic positioning. First, the operating systems commonly found on mobile devices (e.g., iOS, Android) do not support sufficient control at the application level over the timing of the audio sampling clock and other RF transceiver clocks to allow for accurate estimation of the time of flight of an acoustic signal (e.g., quasi-simultaneous readout of audio clock values and transceiver clock values with less than 100 μs latency). Second, there are no RF communication protocols that are currently supported on mobile devices that allow for a low power synchronization mechanism that can be supported by a battery-powered infrastructure and that are scalable across a large network of ultrasonic location transmitters.

Low Level Audio Clock Time Stamping on a Smartphone Using RF Driven Interrupts

Insight by the inventors identified a number of approaches to overcome the above obstacles. In the first approach, a low-latency association of the audio clock with an incoming RF message (i.e., second source) is obtained by using an interrupt-driven routine, where the receipt of the RF message preamble generates an interrupt that reads the value of the audio clock counter since the start of the audio session. For an audio signal sampled at 48 kHz, such a audio sample counter clock signal has sufficient resolution (20.8 μs, which equates to 7 mm for acoustic signals) for the discernment of distances using the timing of acoustic signals. In an embodiment, such an approach may be implemented on the specialized processing cores found in mobile devices that control RF communication, sensor or audio processing.

Indirect Clock Synchronization Between Smartphones and Infrastructure

The present inventors have described a scalable method to synchronize any number of location transmitters with an accuracy of 100 μs or better using in a network deploying intermediate gateways. However, a prerequisite for this method is that the infrastructure units (battery powered location transmitters and intermediate gateways) are communicating using a common RF solution with overlapping communication coverage. While this method is excellent at synchronizing an infrastructure consisting of units running embedded hardware, such an approach cannot be easily realized with mobile devices (e.g., smartphones), since no common RF solution between the infrastructure and the mobile devices (e.g., smartphones) is currently in existence. To overcome this, insight by the inventors has led to several fundamentally different solutions. In one approach, location transmitters transmitting acoustic signals (e.g., ultrasound signals) in a synchronized network are equipped with an additional second RF transceiver that uses a protocol in common with a mobile device (e.g., smartphone) that transmits timing information that can be received by the mobile device. The location transmitters in a network capable of synchronization are made to transmit at a time instance derived from a clock source that is also available to the mobile device. A variety of approaches have been devised by the inventors based on their insight into the challenges described above.

Infrastructure Sends BLE Beacon with a Predefined Offset from the US Transmit

In one embodiment, the infrastructure consisting of network synchronized ultrasound location transmitter units (ultrabeacons) transmits ultrasound signals at an offset and a repetition interval specified in the local clock value of the individual ultraBeacon unit (most commonly the first RF transceiver's real time clock (Snobee or LoRa)). This offset and repetition interval is specified by a central server component based on a statistical analysis of all ultrabeacon clocks and the selection of a reference clock in the infrastructure of the real-time location system. The infrastructure ultrasound location transmitter includes a second RF transceiver (or transceiver) that is capable of transmitting BLE beacon messages at an accurately defined time (microsecond latency is achievable in embedded hardware/firmware solutions). The location transmitter sends a BLE beacon with a unique ID at a relative timing with respect to the earlier specified US transmit offset that is specified by the server based on a lookup table (the beacon also containing a unique identifier). On receipt of the BLE beacon by a smartphone, the current audio clock count is found (with low latency) and stored for retrieval once an associated US transmit is received.

Alternatively the association between the BLE beacon and audio clock may be done indirectly through the use of an intermediate clock (e.g., smartphone system clock). The smartphone has access to the lookup tables used by the server that associate the offsets between us transmit and BLE transmit by looking up the BLE ID and associating it with the timestamp obtained from the US message receive. This allows the smartphone to calculate the time of flight from the delay between the US and BLE transmit.

One advantage of the above approach is that the BLE beacon does not contain any variable data associated with the timing of the system as part of the BLE beacon. There is little or no room for such variable content in most commonly used BLE beacon messages (e.g., iBeacon, Eddystone).

In an alternative to the above approach, the infrastructure may send a BLE beacon that contains timing information. For example, the offset between the ultrasound transmit time and RF transmit time may be contained within the BLE beacon data field.

Other Low Power Means of Communication

Other embodiments may use protocols other than the BLE protocol that is used in the above embodiment. Other embodiments may use any RF protocol that can be controlled at a low level to broadcast at a specified time and be received by a mobile device, and thereby implement the methodology described above. For example, although more power hungry, WiFi represents an alternative approach to the BLE approach.

GPS Clock Synchronization

One approach to synchronization of a cluster of ultrasonic basestations is to use a GPS-synchronized master. However, this approach is not very scalable and costly, since every master has to contain a GPS receiver with good GPS receive conditions. Furthermore, in an indoor environment, the master may only have a coverage of 20-40 m in such an environment, so a large number of such masters would need to be deployed in a realistic indoor environment such as a hospital. To overcome this obstacle, the server controlling the network-synchronized location transmitters may have access to one or more units that can perform a low level time stamp association between a RF transceiver clock that the server observes and a GPS clock that can be time stamped with low latency. Such a unit would consist of an embedded solution that has guaranteed latency of less than 10 μs between the time stamp association of the RF transceiver and the world clock timestamp. To make the GPS clock robust against adverse GPS receive conditions (which are readily encountered in indoor environments), the location of this GPS receiver could be defined statically and made available to the GPS receiver. To estimate GPS time, GPS receivers actually have to estimate location and time simultaneously. By making the location available a priori, GPS time may be estimated with lower error. For redundancy and to reduce GPS errors, it would be an advantage to use more than one unit that includes the ability to simultaneously timestamp RF transmits and GPS clock readings. Such GPS/RF transceiver timestampers could be implemented as gateways in the above synchronized location transmitter network, since these units are permanently powered. Many other embodiments are possible since the means of communication between server and GPS/RF transceiver time stamper units is uncritical; it is the association of GPS time with a RF transceiver clock that is the defining event.

World Clock Synchronization

The concept of GPS synchronization may be extended to use the time concept of a world clock time. The world clock time is a networked arrangement of atomic clocks that maintain accurate timing worldwide. GPS, NTP and LF atomic clocks all relate to this atomic time base to synchronize their clocks. It is therefore possible to derive the time delay between two events by timing the two events using world clock time. How these devices maintain world clock time is often a trade secret, however these devices routinely have access to the internet and therefore NTP is an obvious choice. Mobile devices such as smart phones may have GPS and cell network timing capabilities available that may be used in conjunction with NTP to maintain the system clock as close as possible to true world clock time. Many smart phones, tablets and personal computers support the concept of world clock time and in some cases use this time to timestamp audio recording events. This may be done by timestamping audio buffers using the world clock time, a process that guarantees low latency between the audio sampling event and the timestamp. This means that incoming acoustic signals may be tied to world clock time by interpolating the audio buffer world clock timestamps. The time of arrival of acoustic signals is derived from the audio sample count, which typically has a rate of 48-192 kHz. In an exemplary embodiment, an audio buffer has a length of several thousand samples, which leads to a world clock time stamp at a rate of 10 Hz to 100 Hz. This is more than sufficient to perform an accurate translation of an audio count derived time-of-arrival timing to world clock time.

With the mobile devices expressing the ultrasonic time-of-arrival in terms of world clock time, the remaining challenge is to synchronize the infrastructure to world time. This can be done indirectly using the method outlined for the GPS synchronization. The network of location transmitters may be assumed to be synchronized intrinsically using the networked centralized model, with a central server observing clock pairings and issuing schedules to individual transmitters. The central server typically picks one of the observed clocks as a reference. The way to allow the central server to use world clock time as a reference, is to allow the server to observe one or more pairings of world clock time and RF transceiver clocks that have low latency in the paring process. In embodiments, what is meant by low latency in the pairing process is that timestamps from a RF transceiver needs to be obtained near simultaneous with a world clock time stamp. This can be advantageously implemented in a embedded real time hardware solution where the timing between events can be guaranteed. An example is a microcontroller that has a low level device interface to both the RF transceiver communicating with the location transmitters and for example a GPS device.

An exemplary embodiment is as follows. A GPS receiver is configured to regularly transmit its clock reading to the micro-controller on an internal bus (e.g., UART, SPI, etc.) with a latency that is known. The arrival of the message on the micro-controller triggers an interrupt that initiates a signal to the RF transceiver to sends its current clock count. This signal generates an interrupt on the RF transceiver's controller that reads its clock and sends the clock reading to the micro-controller. Alternatively, some GPS clocks have a I/O pin that changes state when a clock value is available, this pin could trigger a reading of the RF transceiver clock, resulting in a latency of the order of a clock cycle.

In another exemplary embodiment, the world clock time may be obtained from a low frequency (LF) RF atomic clock receiver, network time protocol (NTP), or a cell phone network. In the case of NTP, the server would require a low latency network connection to one or more NTP servers. In addition, one would require a low latency method of pairing the NTP time with the RF transceiver time. Again an embedded solution that implements the NTP protocol and has low level access to a RF transceiver. If an embodiment were to run NPT (or an enhanced NTP with outlier rejection) on the gateways, one can get a relatively accurate clock on the gateways as well. One can then track RF transceiver time against world clock time. If there were several gateways running NTP, one can, in addition, track several gateways estimate of RF transceiver time compared with world time. By averaging over the estimates from multiple gateways, one may obtain an even better estimate of the world clock with respect to the Snobee clock. Here, one can use the same method that is used for synchronization of the RF transceiver clocks with outlier rejection and other enhancements.

Inertial Measurement Unit (IMU) Synchronization

To fuse initial motion sensors data (accelerometers, gyros, magnetometers and pressure sensor) with ultrasound time-of-arrival or time-of-flight data, alignment of samples in time is essential. Each of the sensor groups (accelerometers versus magnetometers) may have its own timing and sample rate. In addition, there is typically no common sampling time for each of these signals and neither can these signals timing be associated with the audio clock. This heavily restricts the utility of fusing inertial measurement unit (IMU) data with ultrasonic positioning data derived from time-of-arrival or time-of-flight. The solution to this problem is to perform low delay clock associations between all of the sensor sub-groups and the audio sampling clock in the same way as described for the BLE and audio clock. Again, this may be realised using low level software implementations that have low intrinsic delays or known constant delays between sampling events across multiple sensor groups.

iOS Embodiment

In an embodiment using the iOS system, iOS appears to synchronize clocks very accurately when compared to NTP. For example, in iOS, the system clock may support an error of the order of 1 ms compared to NTP when an iPhone 8 is connected to a WiFi network. It is understood that some form of NTP is used by iPhone 8 to synchronize its clock, since a larger deviation is found after being disconnected from the WiFi network for some time. The audiocallback routine available on an iOS system is already providing a link between absolute time and the audio count, as follows:

mSampleTime

-   -   The absolute sample frame time.         mHostTime     -   The host machine's time base, mach absolute time.         mRateScalar     -   The ratio of actual host ticks per sample frame to the nominal         host ticks per sample frame.         @field mWordClockTime     -   The word clock time.         @field mSMPTETime     -   The SMPTE time.         @field mFlags     -   A set of flags indicating which representations of the time are         valid.         @field mReserved     -   Pads the structure out to force an even 8 byte alignment.         */         https://lists.apple.com/archives/coreaudio-api/2008/Oct/msg00272.html

This means that in the GPS synchronization scenario above, no specific additional measures are required to synchronize audio if the device system clock is synched to world time already. All we need to do is synchronize the infrastructure to world time using, LF atomic clock, GPS, NTP or other means.

Reference will now be made in detail to the architecture encompassing various embodiments, one or more examples of which are illustrated in the drawings. Each example is provided by way of explanation of the embodiments, not limitation of the invention. In fact, it will be apparent to those skilled in the art that various modification and variations can be made to the embodiments without departing from the scope or spirit of the present disclosure. For instance, features illustrated or described as part of one embodiment can be used with another embodiment to yield a still further embodiment. Thus it is intended that aspects of the present disclosure cover such modifications and variations.

Example aspects of the present disclosure are directed to mobile devices for use in a real-time locating system. For instance, the transmitting device may be configured to transmit acoustic signals such that the acoustic signals may be received by one or more mobile units. In some implementations, the transmitting device may be configured to transmit beacon data such that the beacon data may be received by the one or more mobile units. The acoustic signals may be ultrasonic acoustic signals (e.g. acoustic signals having a frequency greater than or equal to 20 kHz). In some implementations, the first and second acoustic signals can include identifying information associated with the transmitting device and/or location information indicating a location of the transmitting device within a particular subject area. For instance, the location data can indicate a location of the transmitting device within a particular room of a building.

More particularly, the transmitting device may include a first transducer and a second transducer. The first transducer may be configured to transmit first acoustic signals having a first frequency, and the second transducer may be configured to transmit second acoustic signals having a second frequency. In some implementations, the first frequency can be about 20 kHz, and the second frequency can be about 40 kHz. As used herein, the term “about,” when used in conjunction with a numerical value is intended to refer to within 40% of the numerical value. It will be appreciated that other suitable frequencies can be used without deviating from the scope of the present disclosure. Typically the acoustic signals have a narrow band nature due to the use of highly efficient acoustic transducers to obtain adequate battery life. This means that the bandwidth of the acoustic signals is between 5-10% of the carrier frequency.

The transmitting device may further include a beacon device configured to transmit the beacon data. In some implementations, the beacon device can be implemented within the transmitting device. The beacon device may be any suitable beacon device configured to provide beacon data using any suitable wireless communication techniques. For instance, the beacon device can be a radio frequency beacon device (e.g. Bluetooth Low Energy (BLE) beacon device, Bluetooth beacon device, WiFi beacon device, WiFi Direct beacon device, near field communications beacon device, ZigBee beacon device, etc.), an infrared beacon device, or other suitable beacon device. In this manner, the beacon device can include a suitable transmitting device configured to transmit (e.g. broadcast using a suitable short-range wireless communication technology) beacon data. The beacon data can include data indicative of an identification of the transmitting device and/or data indicative of a location of the transmitting device. In some implementations, the location data included in the beacon data can be a relative location of the transmitting device within a particular subject area. The beacon data may also include information involving timing of the transmissions be it RF, ultrasonic or other.

The real-time locating system may be, for instance, an indoor positioning system. More particularly, the real-time locating system may include the transmitting device and one or more mobile units. The mobile units can be any user device, such as a smartphone, tablet computer, laptop computer, wearable computing device, or any other suitable user device capable of being carried by a user while in operation. In some implementations, the mobile units can be dedicated positioning tags configured to be affixed or attached to a person, object, or item. Such positioning tags can be operable to communicate with the transmitting device to determine a location of the positioning tags (and the corresponding person(s), object(s), or item(s) to which the positioning tags are attached.

In this manner, the transmitting device may be configured to transmit the acoustic signals and/or the beacon data within a subject area, such that one or more mobile units within the broadcast range of the transmitting device can receive the transmitted acoustic signals and/or beacon data. In some implementations, a mobile unit that receives the acoustic signals and/or beacon data can then determine a location of the mobile unit within the subject area. In some implementations, the mobile unit can provide the acoustic signals and/or beacon data to a server (e.g. via suitable wired and/or wireless communication), such that the server can determine the location of the mobile unit within the subject area based at least in part on the acoustic signals and/or beacon data.

In particular, the real-time locating system of the present disclosure may be used to determine a location, orientation and/or direction of one or more mobile units. The location, orientation, and/or direction of a mobile unit can be relative with respect to a subject area. For instance, the location of the mobile unit can be a location within a subject area. More particularly, the location can be determined with respect to the layout and dimensions of the subject area and/or a building or other entity in which the subject area is located. The location can be a three-dimensional (3D) location specifying an x-coordinate, a y-coordinate, and a z-coordinate with respect to a 3D space. In some implementations, the location can be a two-dimensional location. Aspects of the present disclosure can provide a location determination of a mobile unit that is accurate within about 6 inches to about 12 inches.

In some implementations, the transmitting device may determine whether to transmit first acoustic signals having a first frequency or second acoustic signals having a second frequency (or both) based at least in part on the capabilities of one or more mobile units associated with the real-time locating system. For instance, a selection of the first or second acoustic signals can be made based at least in part on one or more microphones (or other suitable transducers) included within the mobile units associated with the real-time locating system. As indicated above, the first acoustic signals (provided by the first transducer) can have a frequency of about 20 kHz and the second acoustic signals (provided by the second transducer) can have a frequency of about 40 kHz.

The determination of which acoustic signals to transmit (and thereby which transducer to use to transmit the signals) may be predetermined based at least in part on the known capabilities of the mobile units associated with the real-time locating system. For instance, conventional smartphones include microphones operable to receive acoustic signals having a frequency of 20 kHz. If it is known that the mobile units associated with the real-time locating system include smartphones (or other suitable mobile units operable to receive 20 kHz frequencies), the transmitting device may be operated to provide the first acoustic signals via the first transducer. In some implementations, such acoustic signal determination can be made manually by a user or other person associated with the real-time locating system, for instance, through an interaction with a user interface associated with a computing device (e.g. one or more of the computing devices described with respect to FIG. 3) associated with the real-time locating system. In some implementations, the acoustic signal determination can be performed automatically based at least in part on a look-up function performed by a computing device (e.g. one or more of the computing devices described with respect to FIG. 3) associated with the real-time locating system. More particularly, the computing device can access a look-up table specifying information to be used in the determination of the acoustic signals. Such look-up table can include, for instance, characteristics and/or capabilities of the mobile units associated with the real-time locating system. For instance, the look-up table can specify microphone types, characteristics, capabilities, etc. of various suitable mobile units. In some implementations, the look-up table can specify a particular frequency or transducer to use in transmitting the acoustic signals. The look-up function can be predetermined or can be determined in real-time. For instance, the transmitting device can communicate with a mobile unit to determine an identity of the mobile unit. The transmitting device can then perform the look-up function based on the identity.

The location, orientation, and/or direction of a mobile unit may be determined based at least in part on the acoustic signals received by the mobile unit. It will be appreciated that the such information may be determined using various suitable location determination techniques. For instance, the location, orientation, and/or direction of the mobile unit can be determined based at least in part on a time of flight (TOF), time difference of arrival (TDOA), angle of arrival (AOA), etc. using trilateration, multilateration, triangulation, or other suitable technique. In some implementations, the location, orientation, and/or direction of a mobile unit can be determined based at least in part on one or more position sensors implemented within or otherwise associated with the mobile unit. For instance, such information can be determined or refined using one or more accelerometers, gyroscopes, inertial measurement units, etc. located within the mobile unit, for instance, using suitable sensor fusion techniques.

In some implementations, the location, orientation, and/or direction of a mobile unit may be determined based at least in part on the beacon data provided by the transmitting device. For instance, the beacon data can be used in conjunction with the acoustic signals and/or position sensor data to determine the location, orientation, and/or direction of the mobile unit. In such implementations, the beacon data can be used by the mobile device to determine a course estimate of the location, orientation and/or direction of the mobile unit, which can be refined based at least in part on the acoustic signals and/or position sensor data. In some implementations, the beacon data can be utilized as a backup to the acoustic signals. For instance, if the acoustic signals cannot be used to determine the location of the mobile unit (e.g. if the microphone(s) on the mobile unit do not receive the acoustic signals), the beacon data can be used to determine the location orientation and/or direction of the mobile unit. Generally, the location, orientation, and/or direction of the mobile unit determined from the beacon data will not be as accurate as the location, orientation, and/or direction as determined using the acoustic signals.

As indicated above, the real-time locating system of the present disclosure provides a more accurate and efficient locating system relative to conventional real-time locating systems. More particularly, the real-time locating system of the present disclosure provides increased accuracy of within about 6 inches to about 12 inches. In this manner, the location of the mobile units can be determined on a room-by-room basis and/or on a sub-room basis, which can allow for a more accurate location tracking. Such real-time locating system requires less processing power, and a less complex infrastructure that is smaller and easily scalable. Such real-time locating system further provides near real-time latency by utilizing numerous location determination techniques (e.g. using acoustic signals, position sensor data, and/or beacon data). Such real-time locating system further provides an increased flexibility by allowing the use of various types of mobile units, as well as having the capability to provide multiple acoustic signals having multiple frequencies to accommodate for such various mobile units.

The real-time locating system of the present disclosure may be used in a number of applications, such as location tracking, work flow, mobile equipment tracking, safety and compliance (e.g. hand hygiene compliance, temperature monitoring, door locking for infant abduction protection, wander management, wayfinding, mobile equipment management, staff location determination, etc.) or other suitable application. For instance, the real-time locating system of the present disclosure can be configured to provide wayfinding information by providing routing instructions, step-by-step directions, etc. to a user from an origin to a destination. In some implementations, such wayfinding application can be used in conjunction with a mapping or routing application associated a mobile unit of a user to facilitate the wayfinding with respect to a map of a building, area, geographic region, etc. One example field of use is within the health care industry. For instance, a real-time location system of the present disclosure can be implemented within a hospital to provide patient tracking, patient flow, etc.

With reference now to the figures, example aspects of the present disclosure will be discussed in greater detail. For instance, FIG. 1 depicts an example transmitting device 100 for use in a real-time locating system according to example embodiments of the present disclosure. Transmitting device 100 includes a first transducer 102, a second transducer 104 and a beacon device 106. The first transducer 102 and the second transducer 104 can be any suitable transducers configured to transmit acoustic signals. More particularly the first transducer 102 can be configured to transmit first acoustic signals at a first frequency (e.g. about 20 kHz) and the second transducer 104 can be configured to transmit second acoustic signals at a second frequency (e.g. about 40 kHz). As indicated, the acoustic signals can include data indicative of an identity of the transmitting device 100 and/or data indicative of a location of the transmitting device 100. The beacon device 100 may be powered from a batteries and be capable of operating for several years. Alternatively, the unit may be powered by means of a cable, for example using power over Ethernet or mains.

The beacon device 106 may be any suitable beacon device configured to transmit beacon data using a suitable short-range wireless communication technology. For instance, the beacon device 106 may be a BLE beacon device, WiFi beacon device, infrared beacon device, or other suitable beacon device. As indicated, the beacon data can include data indicative of an identity of the transmitting device 100 and/or data indicative of a location of the transmitting device 100.

The transmitting device 100 may further include a controller 108 configured to cause the first transducer 102 and/or the second transducer 104 to transmit acoustic signals, and to cause the beacon device 106 to transmit the beacon data. The controller 108 can include one or more processors and one or more memory devices. The one or more processors can include any suitable processing device, such as a microprocessor, microcontroller, integrated circuit, logic device, one or more central processing units (CPUs), graphics processing units (GPUs), and/or other processing devices, such as a system on a chip (SoC). The one or more memory devices can include one or more computer-readable media, including, but not limited to, non-transitory computer-readable media, RAM, ROM, hard drives, flash memory, or other memory devices. The one or more memory devices can store information accessible by the one or more processors, including instructions that can be executed by the one or more processors. The instructions can include various aspects of any of the techniques or methods disclosed herein. The one or more memory devices can also include data that can be retrieved, manipulated, created, or stored by the one or more processors.

In some implementations, the controller 108 may cause the acoustic signals and/or the beacon data to be transmitted periodically or in another suitable manner. In some implementations, the controller 108 can be configured to perform a look-up function to determine whether to transmit the first acoustic signals or the second acoustic signals. More particularly, the controller 108 can access a look-up table that specifies one or more operating capabilities associated with various suitable mobile units that are compatible with the transmitting device 100 and/or the real-time locating system. For instance, in some implementations, the mobile unit(s) 110 can provide identifying data of the mobile unit(s) 110 to the transmitting device 100. The controller 108 can perform the look-up function based at least in part on the identifying data. The controller 108 can then select the first acoustic signals associated with the first transducer 102 or second acoustic signals associated with the second transducer 104. The controller 108 can then cause the transmission of the selected acoustic signals by the corresponding transducer.

As indicated, the controller 108 may further cause the transmission of beacon data by the beacon device 106. Such transmission of beacon data can occur separate from the transmission of the acoustic signals, or concurrently with (or prior to) the transmission of the acoustic signals. In some implementations, the beacon data can be transmitted such that the mobile unit(s) 110 that receive the beacon data can determine the location, orientation, and/or direction of the mobile unit based at least in part on both the beacon data and the acoustic signals. In some implementations, the beacon data can be used to implement a backup location determination technique in the event that the location, orientation, and/or direction of the mobile unit(s) 110 cannot be determined using the acoustic signals.

FIG. 2 depicts an example transmitting device 120 for use in a real-time locating system according to example embodiments of the present disclosure. The transmitting device 120 may correspond to the transmitting device 100 of FIG. 1 or other suitable transmitting device. More particularly, FIG. 2 depicts an external view of the transmitting device 120. The transmitting device 120 includes housing 121 that surrounds and protects the sensitive internal components of the transmitting device 120. As shown, the transmitting device 120 includes a first transducer 122 and a second transducer 124. The first transducer 122 can be configured to provide acoustic signals having a frequency of about 20 kHz. The second transducer 124 can be configured to provide acoustic signals having a frequency of about 40 kHz. In some implementations, the transmitting device 120 can further include a beacon device configured to transmit beacon data.

FIG. 3 depicts an example real-time locating system 200 according to example embodiments of the present disclosure. The real-time locating system 200 may be, for instance, an indoor positioning system deployed throughout a building or other structure. The real-time locating system 200 includes a plurality of fixed, static transmitting devices 202 having known locations. The transmitting devices 202 can be any suitable transmitting devices. For instance, the transmitting devices 202 can be configured to transmit acoustic and/or other (e.g. radio frequency) positioning signals and beacon data. In some implementations, the transmitting devices 202 can correspond to the transmitting devices 100 and/or 120 of FIGS. 1 and 2, respectively. The transmitting devices 202 can be stationed strategically throughout the building or structure to allow for a determination of the location of one or more mobile units 204 located within the building or structure. In this manner, the transmitting devices 202 can broadcast acoustic signals such that the acoustic signals can be received by the mobile units when the mobile units are located within a broadcast range of the transmitting devices 202.

The transmitting devices 202 may further communicate with a gateway device 206 associated with the real-time locating system 200. As shown, the real-time locating system 200 can include one or more gateway devices 206. The communication between the transmitting devices 202 and the gateway device 206 can be performed using any suitable wired and/or wireless communication technique. For instance, in some implementations, communication between the transmitting devices 202 and the gateway device 206 can be performed using wireless communication in accordance with the IEEE 802.15.4 standard. The gateway device 206 can be configured to monitor and regulate the health and maintenance and configuration of the real-time locating system 200. In some implementations, the gateway device 206 can have an associated user interface accessible by one or more users of the real-time locating system 200. Such interface can allow users to remotely view, interact with, manipulate, edit, etc. various suitable configurations, characteristics, or qualities of the real-time locating system 200. As shown, the mobile units 204 can further access the gateway device 206 via a suitable communications network, such as a wireless local area network 212. In some implementations, the gateway device 206 can be implemented within a transmitting device 202.

The real-time locating system 200 further includes a server device 208. The server device 208 may be accessible to the transmitting devices 202 and/or the mobile units 204. More particularly, as shown, the server device 208 is accessible to the transmitting devices 202 via the gateway device 206, and to the mobile units 204 via the wireless local area network 212 and/or a cellular network 210. In some implementations, the server device 208 can determine the location, orientation, and/or direction of the mobile units 204 based at least in part on one or more acoustic signals, beacon data and/or sensor data associated with the mobile units. For instance, a mobile unit 204 can provide the received acoustic signals and beacon data along with the sensor data to the server device 208, such that the server device 208 can determine the location, orientation, and/or direction of the mobile unit 204. In implementations wherein the mobile units 204 determine their own locations, orientations, and/or directions, the mobile units 204 can provide such information to the server device 208, such that the server device 208 can update the real-time locating system 200 with the additional information. In some implementations, the server device 208 can host the look-up table used to select the acoustic signals to provide to the mobile units 204.

As indicated, the mobile units 204 and/or the server 208 may be configured to determine the location, orientation and/or direction of the mobile units 204 based at least in part on the acoustic signals, beacon data and/or sensor data. In this manner, a mobile unit 204 can be configured to receive the acoustic signals and/or beacon data provided by one or more transmitting devices 202. The acoustic signals and/or beacon data can encode identifying information associated with the one or more transmitting devices 202 and/or location data associated with the one or more transmitting devices 202. Upon receipt of such data, the mobile device 204 and/or server 208 can be configured to decode the signals to extract the identifying and/or location information encoded in the signals. For instance, upon receipt of acoustic signals from a transmitting device 202, the mobile unit 204 can decode the signals using any suitable decoding techniques, such as various suitable digital signal processing techniques. The mobile unit 204 can then determine a location, orientation and/or direction of the mobile unit 204 based at least in part on the extracted information. For instance, the mobile unit 204 can determine the location, orientation, and/or direction using any suitable positioning techniques, such as by measuring the TOA, TDOA, TOF, etc. of the acoustic signals and using multilateration, trilateration, triangulation, etc.

It will be appreciated that the real-time locating system 200 depicted in FIG. 3 is intended for illustrative purposes only. It will be further appreciated that the real-time locating systems of the present disclosure can include various other suitable configurations or arrangements, and can utilize various other suitable communication techniques. More particularly, the real-time locating system 200 can include any suitable number of transmitting devices 202 arranged in various suitable configurations to facilitate the determination of the locations of any suitable number of mobile units 204.

FIG. 4 depicts a flow diagram of an example method (400) for selecting acoustic signals to transmit by a transmitting device associated with a real-time locating system according to example embodiments of the present disclosure. The method (400) may be implemented by one or more computing devices, such as one or more of the computing devices described with respect to FIG. 1. In addition, FIG. 4 depicts steps performed in a particular order for purposes of illustration and discussion.

At (402), the method (400) may include receiving, by a mobile device, an RF message associated with a real-time locating system. The RF message includes timing information associated with a time of transmission of the RF message relative to a reference clock in the real-time location system.

At (404), the method (400) may include generating an interrupt by the mobile device upon receipt of the RF message.

At (406), the method (400) may, in response to the interrupt, include reading a value of an audio clock, where the value is representative of a time since a start of an audio session associated with a received acoustic signal.

At (408), the method (400) may include synchronizing the audio clock with the reference clock based on the value.

At (410), the method (400) may include determining a location of the mobile device based on the synchronizing the audio clock.

Additional Embodiments

As discussed above, embodiments of real-time location systems seek to provide location of a movable asset or a person by receiving a location specific signal. By decoding and forwarding that location specific information to a central server, the central server may determine the location of that specific movable asset or person. In such a real-time location system, each acoustic transmitter of a location specific signal is required to be configured to provide its location specific signal, and its transmissions of the location specific signal need to be coordinated so that whichever location tag of the movable asset or person is in range, the respective transmission and reception capabilities are synchronized in time. In particular, it is desirable that each location tag be configured to open a receive window that is applicable to all acoustic transmitting devices in the particular environment in which the real-time location system is operating. Thus, all acoustic transmitting devices in the particular environment in which the real-time location system are thereby configured to transmit during the same transmit window. By having all transmitting devices and location tags coordinated to operate on the same transmit/receive window schedule, battery life may be extended by having each of the respective devices sleep at all times other than the transmit/receive window. Alternatively, in the case where the acoustic signals transmitted do not support multiple access, the acoustic signals transmitted from individual beacon devices with an area with acoustic overlap may be distributed with known time offsets. Information on these offsets may advantageously be conveyed through a short-range RF transmission (e.g. BLE) from the transmitter device that is receivable by the mobile devices. The short-range RF transmissions from the transmitter devices can advantageously be coordinated by the central server to occur with some specific offset from a system time for each transmitter device. Again, these timing offsets of the RF transmission can be included as part of the beacon data and used by the mobile device to adjust its timing of receipt of either RF or acoustic receptions. In implementations where the relative latency of acoustic and short-range RF transmissions is controlled with 1 ms, the mobile device can use the delay between RF and acoustic transmissions to estimate the time of flight, greatly aiding the ability to position the device accurately. Commensurate with the location update times required in a real-time location system for environments such as office buildings, hospitals and the like, the transmit/receive window appears on a regular basis. In an exemplary embodiment, the transmit/receive window occurs at a frequency of 1 Hz, i.e., the window appears once per second.

As described above, FIG. 2 illustrates an exemplary real-time location system that uses acoustic signals to provide location signals to location tags in order for locations to be established. Server 208 provides overall control, configuration and synchronization management of the real-time location system. In some embodiments, server 208 also provides analysis of the location signals to determine location of reporting location tags. Server 208 is networked to all location transmitters 202 through the use of gateways 206. Each gateway 206 is connected to server 208 via a network connection, e.g., Ethernet.

Downlink Control, Configuration and Synchronization

Each gateway 206 is located in a location that can control a number of location transmitters 202. Such control is effected by using a 2-way wireless connection between gateway 206 and its dependent location transmitters 202. Factors affecting the design of the wireless connection include size of wireless footprint, cost of the resulting number of gateways 206 and power consumption used by location transmitters 202. In embodiments, location transmitters 202 are powered by batteries in order to reduce the installation cost of location transmitters 202 and permit flexibility of rapid deployment of location transmitters 202 in different locations. Such rapid deployment may be used when offices are changed during a new buildout. Suitable communications protocol for the 2-way wireless connection between gateway 206 and its dependent location transmitters 202 include a ZigBee connection (i.e., IEEE 802.15.4 connection). In an installation of thousands of location transmitters 202, the footprint of a ZigBee connection would require installation of hundreds of gateways 206 to provide the required footprint coverage. In an alternative, a communications protocol for the 2-way wireless connection between gateway 206 and its dependent location transmitters 202 include a Long Range (LoRa) connection. LoRa uses an orthogonal sequence spread spectrum-based (OSSS-based) radio technology to connect devices in its network. The use of OSSS is key to providing a scalable, high-capacity network, with very low energy consumption, while maintaining a simple and easy to rollout a star-based infrastructure. Implementations of an LoRa network operate in the globally available Industrial, Scientific and Medical bands, also referred to as ISM bands, and can co-exist in these bands with other radio technologies, without a substantial risk of collisions or capacity problems. Exemplary LoRa embodiments use the European ISM band at 868 MHz, or the 902-928 MHz band in the United States. LoRa's operation at the much lower frequencies than the 2.4 GHz frequency of the ZigBee protocol results in a much larger footprint than that provided by the equivalent ZigBee protocol. By virtue of the larger footprint, the number of gateways may be reduced by two orders of magnitude compared to that of the equivalent ZigBee protocol realization.

Other Acoustic Transmitter Devices

Location transmitters 202 provide coded information for receipt by location tags 204, where the coded information indicates the identities of those nearby location transmitters 202. Location transmitters 202 provide the coded information using acoustic signals for the reasons previously discussed. Various devices, in addition to dedicated acoustic transmitter devices, may be used to provide the required coded information for receipt by location tags 204. For example, smart devices such as televisions, tablets, smart-home hubs may be used to transmit the acoustic signals and beacon data signals. These smart devices include the required capability of RF communications capability, support beacon signal generation and transmission, and also include speakers that transmit acoustic (including ultrasound) signals. Even light switch covers may be enhanced by an embedded acoustic transmitter to become a location transmitter 202 for use in a real-time location system. Accordingly, through appropriate software (or hardware in the case of a light switch), such existing devices may be enabled as beacons for use in a real-time location system with very little cost. Thus, with very little effort, room-level location accuracy may be provided through the use of these re-configured smart devices. Furthermore, smart televisions and other fixed-mounted devices with good acoustic placement may be used to provide 3D-location information of mobile devices. In scenarios where these smart devices are in an isolated environment where real-time location determination is required, no synchronization of these smart devices is required. BLE capable devices can be synchronized through use4 of the Bluetooth data signal.

Location Tags

Location tags 204 are attached to movable assets or personnel whose location needs to be tracked. Location tags 204 receive coded information from nearby location transmitters 202, where the coded information indicates the identities of those nearby location transmitters 202. Location transmitters 202 provide the coded information using acoustic signals for the reasons previously discussed. For example, the propagation characteristics of acoustic signals more readily support room-based location determination since acoustic signals do not penetrate room walls. In addition to the need to receive the coded information, location transmitters 202 also need to receive configuration, control and synchronization information. Analysis of the available bandwidth of the acoustic signals indicates that additional bandwidth is required to support the configuration, control and synchronization functionality.

Beacon Data Signal

An additional signal pathway from location transmitters 202 to location tags 204 includes the use of a beacon signal. The beacon data signal is often pre-existing in offices, hospitals and other environments in which real-time location systems may be desired. Although the beacon data signal may penetrate walls and result in a much larger footprint than is suitable for real-time location in an office or similar environment, the beacon data signal may provide a coarse location of a particular location tag 204. Knowledge of a coarse location of a particular location tag 204 provides an advantage to location tag 204 since it reduces the number of possible location codes that location tag 204 needs to consider in decoding. A reduction in the number of possible location codes reduces the amount of processing (reduced power consumption) in order for the location determination to be made. The beacon data signal when provided by a Bluetooth Low Energy approach has a comparable footprint to the footprint associated with the acoustic signal transmitter device.

In various embodiments, the beacon data signal may provide information that reflects the subset of possible location codes in the vicinity of location tag 204 (or mobile communication device for which a location determination is desired). In other embodiments, the information reflects the subset of possible location codes in the vicinity of location tag 204 (or mobile communication device for which a location determination is desired), as well as the timeslots during which the subset of possible location codes are transmitted in the acoustic signals. The form of the information, whether a subset of possible location codes, or the subset of possible location codes together with the timeslots during which these possible locations codes are transmitted, include various forms. For example, the information may be in the form of a table of the subset of possible location codes and timeslots, or may be in the form of a link to the information. The location of the information may reside in the cloud, may reside in the server for the real-time location system, or may be downloaded as part of an acoustic model for a particular environment (or portion thereof).

Uplink Communication Link

Location tag 204 needs to transmit the location code that it has received from location transmitter 202. A suitable communication pathway may be formed by incorporating a RF chip set such that an IEEE 802.11, BLE, WiFi or any combination thereof is used to establish a communication link. In many offices, hospital or other similar environments, numerous 802.11 WiFi access points are preexisting and provide such coverage throughout the environment for which real-time location determination is desired. The WiFi network approach for uploading of the location code requires that location tag 204 be admitted to the WiFi network. As an alternative to location tag 204, a mobile communications device (for example, an iPhone or equivalent) may also be used to provide location determination of key personnel. Again, it is required that mobile communications device is admitted to the WiFi network. Mobile communications device offers an alternative uplink path for the location code in that mobile communications device may use a cellular connection to the server via the cloud. Such an alternative path is attractive in scenarios where mobile communications device is not admitted to the WiFi network. For example, in a shopping center or a hospital, mobile communications device may not be connected to the WiFi network.

In yet another alternative uplink scenario, location tags may use a short range RF link with another mobile device (e.g. smartphone, tablet, PC or smartwatch) and use this latter device as a gateway to convey its location information to a central server.

In various embodiments, a beacon device will send out an RF beacon signal (e.g., a short-range wireless signal, a BLE signal), and one or both acoustic signals at exemplary frequencies of 20 kHz and 40 kHz. The combination of both the RF beacon signal and the acoustic signals provide certain advantages for a real-time location system. The acoustic signals include the identification information (i.e., code) of the transmitting device. Identification of the transmitting device provides an indication of location since the acoustic waves diminish as distance from the transmitting device increases. However, the universe of possible codes may be large, which raises the difficulty of decoding the transmitted code, particularly in an environment having multiple echoes and other difficulties. The RF beacon signal may include an indication of the identity of the beacon device that in turn may be used to provide an indication of the subset of codes that are active in the local area. Thus, by virtue of the RF beacon signal, a mobile communications device (such as an iPhone or a location tag) may determine a course indication of its location and thereby be able to discern which subset of acoustic codes are in use in a particular area. Learning the subset of acoustic codes that are in use in a particular area thereby benefits the decoding process by reducing the universe of potential codes that are candidate codes for decoding.

The RF beacon signal may also provide timing information to the mobile communications device. The real-time location system has a reference clock that may be promulgated to the fixed transmitting devices. However, synchronization of the local clock in the mobile communications device is desirable, where synchronization means that the offset between the local clock and the reference clock is determined so that signals may be transmitted/received at agreed-upon times between the fixed transmitting devices and the mobile communications devices. Use of the RF beacon signal for synchronization of an iPhone or comparable device is therefore a desirable outcome, as other means for such synchronization are relatively difficult to achieve.

Synchronization of location tags is also desirable, since synchronization may be used to improve the power usage of the location tag, as well as to provide benefits in the location determination process. Power usage may be improved by timing synchronization of the location tag and the transmitting device such that the location tag awakens for a small agreed-upon time interval to receive the transmitted information. For example, the location tag may be time synchronized to awaken for a 10 msec time interval to receive signals during each 1 second time frame, and then go to sleep for the remainder of the time frame. Such synchronization may be achieved by using timing information in the RF beacon signal. The timing information in the RF beacon signal may also reduce the complexity of real-time location for the location tag. In a time of arrival system (ToA) like GPS, there are four unknowns: the three geometric dimensions of location (i.e., x, y, z) of the GPS device, together with the unknown timing offset between the local clock in the GPS device and that of the reference clock in the satellites in the GPS system. Those same principles apply to a real-time location system using acoustics. However, by providing timing information with the RF beacon signal, one of the four unknowns is resolved—thereby simplifying the complexity of the real-time location system by reducing the number of unknowns to three. In providing the timing information with the RF beacon signal, the RF transmission times are negligible compared to the acoustical timeframes relevant to the real-time location system.

While the present subject matter has been described in detail with respect to specific example embodiments thereof, it will be appreciated that those skilled in the art, upon attaining an understanding of the foregoing may readily produce alterations to, variations of, and equivalents to such embodiments. Accordingly, the scope of the present disclosure is by way of example rather than by way of limitation, and the subject disclosure does not preclude inclusion of such modifications, variations, and/or additions to the present subject matter as would be readily apparent to one of ordinary skill in the art. 

What is claimed is:
 1. A method associated with a real-time location system, the method comprising: receiving by a mobile device an RF message, the RF message including timing information associated with a time of transmission of the RF message relative to a reference clock in the real-time location system; generating an interrupt by the mobile device upon receipt of the RF message; in response to the interrupt, reading a value of an audio clock, the value being representative of a time since a start of an audio session associated with a received acoustic signal; synchronizing the audio clock with the reference clock based on the value; and determining a location of the mobile device based on the synchronizing the audio clock.
 2. The method of claim 1, wherein the RF message is a BLE beacon message.
 3. A method associated with a real-time location system, the method comprising: receiving a global clock signal at a server; associating a reference clock with the received global clock signal; transmitting an acoustic signal from a location transmitter at a time synchronized with the reference clock; receiving by a mobile device a clock signal associated with the global clock signal; receiving by the mobile device the acoustic signal; time-stamping, using an audio clock, the received acoustic signal; synchronizing the audio clock with the reference clock using the global clock signal; and determining a location of the mobile device based on the synchronizing the audio clock.
 4. The method of claim 3, wherein the global clock signal is a GPS signal.
 5. The method of claim 3, wherein the global clock signal is a network time protocol (NTP) signal.
 6. The method of claim 3, wherein the global clock signal is a signal associated with a global atomic clock.
 7. The method of claim 3, wherein the global clock signal is a cellular network clock signal.
 8. The method of claim 3, wherein the associating a reference clock with the received global clock signal comprises: transmit a clock value associated with the received global clock signal to a micro-controller; triggering, by the micro-controller, an interrupt to the reference clock; and receiving, by the micro-controller a clock value from the reference clock in response to the interrupt.
 9. The method of claim 3, further comprising: receiving data from an inertial motion sensor located in the mobile device; receiving timing information associated with the received data; associating the timing information and the audio clock, wherein the determining a location of the mobile device based on the synchronizing the audio clock is further based on fusing the data from the inertial motion sensor and associated timing information.
 10. The method of claim 9, wherein the inertial motion sensor is one of an accelerometer, gyroscope, magnetometer, and pressure sensor. 